import {
	request
} from '@/plugins/axios';
const token = uni.getStorageSync('token');

export function addListeningHistory(audioId) {
    return request({
        // 替换为具体路径前缀
        url: `http://localhost:8790/data-mood-api/app/userListening/addListeningHistory`,
        method: 'GET',
		headers: {
		    'Authorization': `${token}`
		},
		params: { audioId},
    });
}

export function getListenHistory(timeType){
	return request({
		url:`http://localhost:8790/data-mood-api/app/userListening/getListenHistory`,
		method :'get',
		headers: {
			'Authorization': `${token}`
		},
		params:{
			timeType
		}
	});
}